<html manifest="IGNORE.manifest" lang="zh-CN" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3"><!DOCTYPE html>
<html manifest="IGNORE.manifest" class="xiangqingddddd" lang="en">
<head>
	<meta charset="UTF-8">
	<title></title>
    <link rel="stylesheet" type="text/css" href="./css/reset.css" th:href="@{${uiPath} + ${appName} + '/css/reset.css'}"/>
    <link rel="stylesheet" type="text/css" href="./css/index.css" th:href="@{${uiPath} + ${appName} + '/css/index.css'}"/>
    <link rel="stylesheet" type="text/css" href="../css/zdialog.css"
          th:href="@{${uiPath} + ${appName} + '/css/zdialog.css'}"/>
</head>
<body>
<div class="yhzong"> 
     <div class="toubu">
       <p class="pdp">我的设计单</p>
        <a href="yezhuTicket.html"><img class="fanhui" src="../images/raw_1503386635.png" alt="" th:src="@{${uiPath} + ${appName} + '/images/raw_1504156605.png'}"></a>
     </div> 
     <div class="kuai"> </div>
     <div class="khmytickettop">
             <p class="kehumytickey">我的需求单</p>
             <p class="khtickyifu">待付款</p>
             <p class="khtickdaifu">进行中</p>
             <p class="khtickyiwan">已完成</p>
     </div>
     <div class="ticketxiangyifu xuqiudanjkj">
          <div class="ticketxiang khweixuanbiaode" th:each="data:${data}" th:if="${data.demandType==0||data.demandType==1}">
              <a th:href="'/ownerOrder/demandInfo?id='+${data.id}+'&type=0'">
          <div class="kehuxuqiud">
            <p class="xiaoquName"><b th:text="${data.callName}">雅居园小区128平</b></p>
            <p class="sejitime" th:text="${data.createTime}">2017-1-2 12:21:45</p>
            <p class="shejiyaoqiu" th:text="${data.demandInfo}">要求中式风格，古朴典雅，20天内完成</p>
            <p class="tickright yehuright"></p>
            <p class="sejijiage">投标数量：8</p>
            <p class="xuanbiao" th:if="${data.demandType==0}" th:text="未选标">未选标</p>
              <p class="xuanbiao" th:if="${data.demandType==1}" th:text="待选标">待选标</p>
        </div>
              </a>
         </div>

     </div>  
     <!-- 待付款 -->
     <div class="ticketxiangyifu sjdaifukuang">
          <div class="ticketxiang khdaifubiaode">
          <div class="kehuxuqiud" th:each="data:${data}" th:if="${data.demandType==2}">
            <p class="xiaoquName"><b th:text="${data.callName}">雅居园小区128平</b></p>
            <p class="sejitime" th:text="${data.createTime}">2017-1-2 12:21:45</p>
            <p class="shejiyaoqiu" th:text="${data.demandInfo}">要求中式风格，古朴典雅，20天内完成</p>
            <p class="tickright yehuright"></p>
            <p class="sejijiage"th:text="${data.dneedsBid.bidMoney}" >需支付金额：800</p>
            <p class="xuanbiao yixuan"  th:data="${data.id}" th:if="${data.demandType==2}" th:text="待付款">待付款</p>
          </div>
         </div>
     </div>  
     <!-- 进行中 -->
     <div class="ticketxiangyifu sjjinxingz">
          <div class="ticketxiang khjinxingbiaode">
              <div class="kehuxuqiud" th:each="data:${data}" th:if="${data.demandType==3}">
                  <p class="xiaoquName"><b th:text="${data.callName}">雅居园小区128平</b></p>
                  <p class="sejitime" th:text="${data.createTime}">2017-1-2 12:21:45</p>
                  <p class="shejiyaoqiu" th:text="${data.demandInfo}">要求中式风格，古朴典雅，20天内完成</p>
                  <p class="tickright yehuright"></p>
                  <p class="sejijiage"th:text="${data.dneedsBid.bidMoney}" >需支付金额：800</p>
                  <p class="xuanbiao jinxingss"  th:if="${data.demandType==3}" th:text="制作中">制作中</p>
              </div>
              <div class="kehuxuqiud" th:each="data:${data}" th:if="${data.demandType==4}">
                  <p class="xiaoquName"><b th:text="${data.callName}">雅居园小区128平</b></p>
                  <p class="sejitime" th:text="${data.createTime}">2017-1-2 12:21:45</p>
                  <p class="shejiyaoqiu" th:text="${data.demandInfo}">要求中式风格，古朴典雅，20天内完成</p>
                  <p class="tickright yehuright"></p>
                  <p class="sejijiage"th:text="${data.dneedsBid.bidMoney}" >需支付金额：800</p>
                  <p class="xuanbiao jinxingss" th:onclick="'chakan('+${data.id}+')'" th:data="${data.id}"  th:if="${data.demandType==4}" th:text="已上传">已上传</p>
              </div>
              <div class="kehuxuqiud" th:each="data:${data}" th:if="${data.demandType==5||data.demandType==6}">
                  <p class="xiaoquName"><b th:text="${data.callName}">雅居园小区128平</b></p>
                  <p class="sejitime" th:text="${data.createTime}">2017-1-2 12:21:45</p>
                  <p class="shejiyaoqiu" th:text="${data.demandInfo}">要求中式风格，古朴典雅，20天内完成</p>
                  <p class="tickright yehuright"></p>
                  <p class="sejijiage"th:text="${data.dneedsBid.bidMoney}" >需支付金额：800</p>
                  <p class="xuanbiao jinxingss"  th:onclick="'xiugai('+${data.id}+')'" th:data="${data.id}"  th:if="${data.demandType==5}" th:text="修改中">修改中</p>
              </div>

         </div>

     </div>
    <!-- 已完成 -->
    <div class="ticketxiangyifu sjyiwancheng">
        <div class="ticketxiang khyiwancbiaode">
            <div class="kehuxuqiud" th:each="data:${data}" th:if="${data.demandType==7}">
                <p class="xiaoquName"><b th:text="${data.callName}">雅居园小区128平</b></p>
                <p class="sejitime" th:text="${data.createTime}">2017-1-2 12:21:45</p>
                <p class="shejiyaoqiu" th:text="${data.demandInfo}">要求中式风格，古朴典雅，20天内完成</p>
                <p class="tickright yehuright"></p>
                <p class="sejijiage"th:text="${data.dneedsBid.bidMoney}" >需支付金额：800</p>
                <p class="xuanbiao jinxingss"  th:onclick="'ywc('+${data.id}+')'" th:data="${data.id}"  th:if="${data.demandType==7}" th:text="已完成">修改中</p>
            </div>
        </div>


    </div>

</div>

<script type="text/javascript" src="../js/flexible.js" th:src="@{${uiPath} + ${appName} + '/js/flexible.js'}"></script>
<script type="text/javascript" src="../js/jquery.min.js" th:src="@{${uiPath} + ${appName} + '/js/jquery.min.js'}"></script>
<script type="text/javascript" src="../js/zdialog.js" th:src="@{${uiPath} + ${appName} + '/js/zdialog.js'}"></script>

<script type="text/javascript" src="../js/index.js" th:src="@{${uiPath} + ${appName} + '/js/index.js?v=2017151454'}"></script>
<script th:inline="javascript">
    $('.yixuan').click(function () {
        $.DialogByZ.Loading(/*[[${uiPath}+${appName}+'/images/loading.png']]*/)
            var id = $(this).attr('data');
        $.ajax({
            url:'/orderUser/toDemandPay',
                    type:'post',
                    dataType:'json',
                    data:{'id':$(this).attr('data')},
                    success:function (result) {
                        if(result.code==1){
                            $.DialogByZ.Close();
/*
                            alert("123456789");
*/
                            window.location.href="/ownerOrder/demandInfo?id="+id+"&type=2";

/*
                            window.location.href="/orderUser/toWxDemandPay";
*/
                        }
                    }
                })
    })
    function  chakan(id) {
/*
        window.location.href="/ownerDemand/sjtxq?id="+id+"&type=0";
*/
        window.location.href="/ownerOrder/demandInfo?id="+id+"&type=1";

    }
    function  xiugai(id) {
        /*
                window.location.href="/ownerDemand/sjtxq?id="+id+"&type=0";
        */
        window.location.href="/ownerOrder/demandInfo?id="+id+"&type=3";

    }
    function  ywc(id) {
        /*
                window.location.href="/ownerDemand/sjtxq?id="+id+"&type=0";
        */
        window.location.href="/ownerOrder/demandInfo?id="+id+"&type=7";

    }
    </script>

</body>
</html>